package com.wmx.main.text03;

import com.wmx.main.text01.StudentAnnotation;

import java.util.Arrays;

/**
 * @author:wmx 2025-03-28 11:06
 * 1、功能:
 * 2、参数{
 * <p>
 * <p>
 * }
 **/
@StudentInfo(sex = '男',like={"运动","打代码"})
class Student {

    private String name;
    private char sex;
    private String[] like;

    public Student() {
    }

    public Student(String name, char sex, String[] like) {
        this.name = name;
        this.sex = sex;
        this.like = like;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String[] getLike() {
        return like;
    }

    public void setLike(String[] like) {
        this.like = like;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", sex=" + sex +
                ", like=" + Arrays.toString(like) +
                '}';
    }
}
